home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
DO1002.ARJ
/
GOTOC.SCR
< prev
next >
Wrap
Text File
|
1991-12-29
|
891b
|
33 lines
.pg wi full clr cy
COMMAND NAME»gray«: »%t« GotoCharacterLabel »ye«
/GOTOC {Prompt} {List}[ {variable}][ LC]
/cw
The »%t«GotoCharacterLabel»#« command is the same as the
»%t«GetCharacter»#« command except that it »wh«branches to a label
corresponding to the character entered by the user»#«.
Like the »%t«GetCharacter»#« command, the Character is stored in
the system variable »ye«CHAR»#« if »cy«{variable}»#« is not entered.
.pg clr
Here is an example. Press »bo«<enter>»#« to execute each line.
Notice that the selection is placed in the variable »ye«CHOICE»#«.
|/GOTOC "Choice (A,B,C): " ABC choice
:A
"A" BRANCH
| This is the "»ye«%choice»#«" branch
/GOTO GotocEnd
:B
"B" BRANCH
| This is the "»ye«%choice»#«" branch.
/GOTO GotocEnd
:C
"C" BRANCH
| This is the "»ye«%choice»#«" branch.
:GOTOCEND
/ENDEXEC